# -*- conding:UTF-8 -*-

'''
@ Project: P8 flask_progect
@ File: courses.py
@ Author: 罗婷
@ Date：2022/6/23 14:00

'''
from flask_restful import fields

# 标签
tags_fields = {
    'tag_name': fields.String,
    'sequence': fields.Integer,
    'id': fields.Integer,
}

# 课程
courses_fields = {
    'id': fields.Integer,
    'learner': fields.Integer,
    'attention': fields.Integer,
    'course_status': fields.Integer,
    'course_name': fields.String,
    'course_img': fields.String,
    'course_introduce': fields.String,
    'course_type': fields.String,
    'is_collect': fields.Boolean,
}

# 章节
chapter_fields = {
    'id': fields.Integer,
    'title': fields.String,
    'serial_num': fields.Integer,
    'course': fields.Integer,
}

# 章节的小节
section_fields = {
    'id': fields.Integer,
    'serial_num': fields.Integer,
    'chapters': fields.Integer,
    'section_title': fields.String,
    'learn_time': fields.Float,
    'video_url': fields.String,
    'like_count': fields.Integer,
}
# 评论
comment_fields = {
    'id': fields.Integer,
    'user': fields.Integer,
    'zan_num': fields.Integer,
    'course': fields.Integer,
    'reply_count': fields.Integer,
    'parent_id': fields.Integer,
    'comment_time': fields.DateTime,
    'comment_content': fields.String,
    'is_top': fields.Boolean,
    'is_favorite': fields.Boolean,


}